// eslint-disable-next-line
import {
	UserLayout,
	BasicLayout,
	BlankLayout,
	PageView,
	RouteView
} from '@/layouts'

// const RouteView = {
//   name: 'RouteView',
//   render: h => h('router-view')
// }

export const asyncRouterMap = [{
		path: '/',
		name: 'index',
		component: BasicLayout,
		meta: {
			title: '首页'
		},
		redirect: '/home',
		children: [{
				path: '/clothes',
				name: 'clothes',
				component: RouteView,
				redirect: '/clothes/clothes-list',
				meta: {
					title: '洗衣模块',
					icon: 'skin',
					keepAlive: true,
					permission: ['clothes']
				},
				children: [{
						path: '/clothes/clothes-list',
						name: 'clothesList',
						component: () => import( /* webpackChunkName: "clothes" */
							'@/views/clothes/ClothesList'),
						meta: {
							title: '洗衣列表',
							keepAlive: true,
							permission: ['clothes']
						}
					},
					{
						path: '/clothes/clothes-orderexpress',
						name: 'clothesOrderexpress',
						component: () => import( /* webpackChunkName: "clothes" */
							'@/views/clothes/ClothesOrderexpress'),
						meta: {
							title: '物流配送',
							keepAlive: false,
							permission: ['clothes']
						}
					},
					{
						path: '/clothes/douyin-list',
						name: 'douyinList',
						component: () => import( /* webpackChunkName: "clothes" */
							'@/views/clothes/DouyinList'),
						meta: {
							title: '兑换列表',
							keepAlive: false,
							permission: ['clothes']
						}
					},
					{
						path: '/clothes/clothes-kinds',
						name: 'clothesKinds',
						component: () => import( /* webpackChunkName: "clothes" */
							'@/views/clothes/ClothesKinds'),
						meta: {
							title: '洗衣类型',
							keepAlive: true,
							permission: ['clothes']
						}
					},
					{
						path: '/clothes/clothes-store',
						name: 'clothesStore',
						component: () => import( /* webpackChunkName: "store" */
							'@/views/clothes/ClothesStore'),
						meta: {
							title: '门店管理',
							keepAlive: true,
							permission: ['clothes']
						}
					},
					{
						path: '/clothes/clothes-price/:clothes_id',
						name: 'clothesPrice',
						hidden: true,
						component: () => import( /* webpackChunkName: "clothes" */
							'@/views/clothes/ClothesPrice'),
						meta: {
							title: '洗衣价格',
							permission: ['clothes']
						}
					},
					{
						path: '/clothes/clothes-order/:store_id',
						name: 'clothesOrder',
						hidden: true,
						component: () => import( /* webpackChunkName: "clothes" */
							'@/views/clothes/ClothesOrder'),
						meta: {
							title: '洗衣订单',
							permission: ['clothes']
						}
					},
					{
						path: '/clothes/clothes-scan',
						name: 'clothesScanCode',
						hidden: true,
						component: () => import( /* webpackChunkName: "clothes" */
							'@/views/clothes/ClothesScanCode'),
						meta: {
							title: '扫码页面',
							permission: ['clothes']
						}
					},
					{
						path: '/clothes/clothes-order-detail',
						name: 'clothesOrderDetail',
						hidden: true,
						component: () => import( /* webpackChunkName: "clothes" */
							'@/views/clothes/ClothesOrderDetail'),
						meta: {
							title: '订单详情',
							permission: ['clothes']
						}
					},
					{
						path: '/clothes/clothes-split/:id/:seal_code',
						name: 'clothesSplit',
						hidden: true,
						component: () => import( /* webpackChunkName: "clothes" */
							'@/views/clothes/ClothesSplit'),
						meta: {
							title: '备注拆分',
							permission: ['clothes']
						}
					},
					{
						path: '/clothes/clothes-offline',
						name: 'clothesOffline',
						component: () => import( /* webpackChunkName: "clothes" */
							'@/views/clothes/ClothesOffline'),
						meta: {
							title: '线下收衣',
							keepAlive: true,
							permission: ['clothes']
						}
					},
					{
						path: '/clothes/clothes-offline-pay',
						name: 'clothesOfflinePay',
						hidden: true,
						component: () => import( /* webpackChunkName: "clothes" */
							'@/views/clothes/ClothesOfflinePay'),
						meta: {
							title: '线下支付',
							permission: ['clothes']
						}
					}
				]
			},
			{
				path: '/appliance',
				name: 'appliance',
				component: RouteView,
				redirect: '/appliance/appliance-list',
				meta: {
					title: '家电模块',
					icon: 'reconciliation',
					keepAlive: true,
					permission: ['user']
				},
				children: [{
						path: '/appliance/appliance-list',
						name: 'applianceList',
						component: () => import( /* webpackChunkName: "appliance" */
							'@/views/appliance/ApplianceList'),
						meta: {
							title: '家电列表',
							keepAlive: true,
							permission: ['appliance']
						}
					},
					{
						path: '/appliance/appliance-price/:id',
						name: 'appliancePrice',
						hidden: true,
						component: () => import( /* webpackChunkName: "appliance" */
							'@/views/appliance/AppliancePrice'),
						meta: {
							title: '家电价格',
							permission: ['appliance']
						}
					},
					{
						path: '/appliance/appliance-store',
						name: 'applianceStore',
						component: () => import( /* webpackChunkName: "store" */
							'@/views/appliance/ApplianceStore'),
						meta: {
							title: '门店管理',
							keepAlive: true,
							permission: ['appliance']
						}
					},
					{
						path: '/appliance/appliance-order/:store_id',
						name: 'applianceOrder',
						hidden: true,
						component: () => import( /* webpackChunkName: "appliance" */
							'@/views/appliance/ApplianceOrder'),
						meta: {
							title: '家电订单',
							permission: ['appliance']
						}
					},
					{
						path: '/appliance/appliance-order-detail',
						name: 'applianceOrderDetail',
						hidden: true,
						component: () => import( /* webpackChunkName: "appliance" */
							'@/views/appliance/ApplianceOrderDetail'),
						meta: {
							title: '订单详情',
							permission: ['appliance']
						}
					}
				]
			},
			{
				path: '/house',
				name: 'house',
				component: RouteView,
				meta: {
					title: '家政模块',
					icon: 'bank',
					permission: ['house']
				},
				children: [{
						path: '/house/house-list',
						name: 'houseList',
						component: () => import( /* webpackChunkName: "house" */ '@/views/house/HouseList'),
						meta: {
							title: '家政列表',
							keepAlive: true,
							permission: ['house']
						}
					},
					{
						path: '/house/house-price/:house_id',
						name: 'housePrice',
						hidden: true,
						component: () => import( /* webpackChunkName: "house" */
							'@/views/house/HousePrice'),
						meta: {
							title: '家政价格',
							permission: ['house']
						}
					},
					{
						path: '/house/house-kinds',
						name: 'houseKinds',
						component: () => import( /* webpackChunkName: "house" */
							'@/views/house/HouseKinds'),
						meta: {
							title: '家政类型',
							keepAlive: true,
							permission: ['house']
						}
					},
					{
						path: '/house/house-store',
						name: 'houseStore',
						component: () => import( /* webpackChunkName: "store" */
							'@/views/house/HouseStore'),
						meta: {
							title: '门店管理',
							keepAlive: true,
							permission: ['house']
						}
					},
					{
						path: '/house/house-order/:store_id',
						name: 'houseOrder',
						hidden: true,
						component: () => import( /* webpackChunkName: "house" */
							'@/views/house/HouseOrder'),
						meta: {
							title: '家政订单',
							permission: ['house']
						}
					},
					{
						path: '/house/house-order-detail',
						name: 'houseOrderDetail',
						hidden: true,
						component: () => import( /* webpackChunkName: "house" */
							'@/views/house/HouseOrderDetail'),
						meta: {
							title: '订单详情',
							permission: ['house']
						}
					}

				]
			},
			{
				path: '/store',
				name: 'store',
				component: RouteView,
				hidden: true,
				redirect: '/store/clerk-list',
				meta: {
					title: '门店管理',
					icon: 'bank',
					permission: ['store']
				},
				children: [{
						path: '/store/clerk-list',
						name: 'clerkList',
						hidden: true,
						component: () => import( /* webpackChunkName: "store" */ '@/views/store/ClerkList'),
						meta: {
							title: '店员管理',
							permission: ['store']
						}
					},
					{
						path: '/store/inviete-user',
						name: 'inviteUser',
						hidden: true,
						component: () => import( /* webpackChunkName: "store" */
							'@/views/store/InviteUser'),
						meta: {
							title: '邀请的人',
							permission: ['store']
						}
					}
				]
			},
			{
				path: '/goods',
				name: 'goods',
				component: RouteView,
				redirect: '/goods/goods-list',
				meta: {
					title: '商城模块',
					icon: 'shopping',
					keepAlive: true,
					permission: ['user']
				},
				children: [{
						path: '/goods/goods-list',
						name: 'goodsList',
						component: () => import( /* webpackChunkName: "goods" */ '@/views/goods/GoodsList'),
						meta: {
							title: '商品管理',
							keepAlive: true,
							permission: ['goods']
						}
					},
					{
						path: '/goods/goods-kinds',
						name: 'goodsKinds',
						component: () => import( /* webpackChunkName: "goods" */
							'@/views/goods/GoodsKinds'),
						meta: {
							title: '类型管理',
							keepAlive: true,
							permission: ['goods']
						}
					},
					{
						path: '/goods/goods-order',
						name: 'goodsOrder',
						component: () => import( /* webpackChunkName: "goods" */
							'@/views/goods/GoodsOrder'),
						meta: {
							title: '商品订单',
							keepAlive: true,
							permission: ['goods']
						}
					},
					{
						path: '/goods/goods-order-detail/:id',
						name: 'goodsOrderDetail',
						hidden: true,
						component: () => import( /* webpackChunkName: "goods" */
							'@/views/goods/GoodsOrderDetail'),
						meta: {
							title: '订单详情',
							permission: ['goods']
						}
					}
				]
			},
			{
				path: '/discount',
				name: 'discount',
				component: RouteView,
				redirect: '/coupon/coupon-list',
				meta: {
					title: '优惠券模块',
					icon: 'gift',
					keepAlive: true,
					permission: ['discount']
				},
				children: [{
						path: '/coupon/coupon-list',
						name: 'couponList',
						component: () => import( /* webpackChunkName: "discount" */
							'@/views/discount/CouponList'),
						meta: {
							title: '优惠券管理',
							keepAlive: true,
							permission: ['coupon']
						}
					},
					{
						path: '/yearCard/yearCard-list',
						name: 'yearCardList',
						component: () => import( /* webpackChunkName: "discount" */
							'@/views/discount/YearCardList'),
						meta: {
							title: '年卡管理',
							keepAlive: true,
							permission: ['yearCard']
						}
					},
					{
						path: '/elector/electron-card',
						name: 'electronCard',
						component: () => import( /* webpackChunkName: "discount" */
							'@/views/discount/electronCard'),
						meta: {
							title: '电子卡券',
							keepAlive: true,
							permission: ['elector']
						}
					},
					{
						path: '/vip/vip-list',
						name: 'vipList',
						component: () => import( /* webpackChunkName: "discount" */
							'@/views/discount/VipList'),
						meta: {
							title: '会员管理',
							keepAlive: true,
							permission: ['vip']
						}
					}
				]
			},
			{
				path: '/price',
				name: 'price',
				component: RouteView,
				redirect: '/price/price-list',
				meta: {
					title: '费用设置',
					icon: 'dollar',
					keepAlive: true,
					permission: ['price']
				},
				children: [{
					path: '/price/price-list',
					name: 'priceList',
					component: () => import( /* webpackChunkName: "price" */ '@/views/price/PriceList'),
					meta: {
						title: '费用列表',
						keepAlive: true,
						permission: ['price']
					}
				}]
			},
			{
				path: '/region',
				name: 'region',
				component: RouteView,
				redirect: '/region/region-list',
				meta: {
					title: '区域绑定',
					icon: 'global',
					keepAlive: true,
					permission: ['region']
				},
				children: [{
					path: '/region/region-list',
					name: 'regionList',
					component: () => import( /* webpackChunkName: "region" */
						'@/views/region/RegionList'),
					meta: {
						title: '区域绑定列表',
						keepAlive: true,
						permission: ['region']
					}
				}]
			},
			{
				path: '/app',
				name: 'app',
				component: RouteView,
				redirect: '/app/shop-index',
				meta: {
					title: 'APP设置',
					icon: 'mobile',
					keepAlive: true,
					permission: ['app']
				},
				children: [{
						path: '/app/shop-index',
						name: 'shopIndex',
						component: () => import( /* webpackChunkName: "app-setting" */
							'@/views/app/ShopIndex'),
						meta: {
							title: '商城banner图',
							keepAlive: true,
							permission: ['app']
						}
					},
					{
						path: '/app/app-index',
						name: 'appIndex',
						component: () => import( /* webpackChunkName: "app-setting" */
							'@/views/app/AppIndex'),
						meta: {
							title: 'APP首页设置',
							keepAlive: true,
							permission: ['app']
						}
					},
					{
						path: '/app/app-appoint',
						name: 'appAppoint',
						component: () => import( /* webpackChunkName: "app-setting" */
							'@/views/app/AppAppoint'),
						meta: {
							title: 'APP分类设置',
							keepAlive: true,
							permission: ['app']
						}
					}
				]
			},
			{
				path: '/merchantGoods',
				name: 'merchantGoods',
				component: RouteView,
				redirect: '/merchantGoods/merchantGoods-list',
				meta: {
					title: '商家商城',
					icon: 'shopping',
					keepAlive: true,
					permission: ['user']
				},
				children: [{
						path: '/merchantGoods/merchantGoods-list',
						name: 'merchantGoodsList',
						component: () => import( /* webpackChunkName: "merchantGoods" */
							'@/views/merchantGoods/MerchantGoodsList'),
						meta: {
							title: '商品管理',
							keepAlive: true,
							permission: ['merchantGoods']
						}
					},
					{
						path: '/merchantGoods/merchantGoods-order',
						name: 'merchantGoodsOrder',
						component: () => import( /* webpackChunkName: "merchantGoods" */
							'@/views/merchantGoods/MerchantGoodsOrder'),
						meta: {
							title: '商城订单',
							keepAlive: true,
							permission: ['merchantGoods']
						}
					},
					{
						path: '/merchantGoods/merchantGoods-order-detail/:id',
						name: 'merchantGoodsOrderDetail',
						hidden: true,
						component: () =>
							import( /* webpackChunkName: "merchantGoods" */
								'@/views/merchantGoods/MerchantGoodsOrderDetail'),
						meta: {
							title: '订单详情',
							permission: ['merchantGoods']
						}
					}
				]
			},
			{
				path: '/activity',
				name: 'activity',
				component: RouteView,
				redirect: '/activity/groupBuy-list',
				meta: {
					title: '活动模块',
					icon: 'alert',
					keepAlive: true,
					permission: ['activity']
				},
				children: [{
						path: '/activity/groupBuy-list',
						name: 'groupBuyList',
						component: () => import( /* webpackChunkName: "activity" */
							'@/views/activity/GroupBuyList'),
						meta: {
							title: '团购列表',
							keepAlive: true,
							permission: ['activity']
						}
					},
					{
						path: '/activity/groupBuy-order-list',
						name: 'groupBuyOrderList',
						component: () => import( /* webpackChunkName: "activity" */
							'@/views/activity/GroupBuyOrderList'),
						meta: {
							title: '团购订单',
							keepAlive: true,
							permission: ['activity']
						}
					},
					{
						path: '/activity/groupBuy-order-detail/:id',
						name: 'groupBuyOrderDetail',
						hidden: true,
						component: () => import( /* webpackChunkName: "activity" */
							'@/views/activity/GroupBuyOrderDetail'),
						meta: {
							title: '订单详情',
							permission: ['activity']
						}
					},
					{
						path: '/activity/shareFee-list',
						name: 'shareFeeList',
						component: () => import( /* webpackChunkName: "activity" */
							'@/views/activity/ShareFeeList'),
						meta: {
							title: '秒杀列表',
							keepAlive: true,
							permission: ['activity']
						}
					},
					{
						path: '/activity/shareFee-order-list',
						name: 'shareFeeOrderList',
						component: () => import( /* webpackChunkName: "activity" */
							'@/views/activity/ShareFeeOrderList'),
						meta: {
							title: '秒杀订单',
							keepAlive: true,
							permission: ['activity']
						}
					},
					{
						path: '/activity/shareFee-order-detail/:id',
						name: 'shareFeeOrderDetail',
						hidden: true,
						component: () => import( /* webpackChunkName: "activity" */
							'@/views/activity/ShareFeeOrderDetail'),
						meta: {
							title: '订单详情',
							permission: ['activity']
						}
					},
					{
						path: '/activity/clothesStoreActivityList',
						name: 'ClothesStoreActivityList',
						component: () => import( /* webpackChunkName: "activity" */
							'@/views/activity/ClothesStoreActivityList'),
						meta: {
							title: '洗衣门店活动',
							permission: ['activity']
						}
					},
					{
						path: '/activity/activityCity/:activity_id',
						name: 'activityCity',
						hidden: true,
						component: () => import( /* webpackChunkName: "activity" */
							'@/views/activity/activityCity'),
						meta: {
							title: '活动城市',
							permission: ['activity']
						}
					}
				]
			},
			{
				path: '/wallet',
				name: 'wallet',
				component: RouteView,
				redirect: '/wallet/store-stat',
				meta: {
					title: '钱包/订单',
					icon: 'credit-card',
					keepAlive: true,
					permission: ['wallet']
				},
				children: [{
						path: '/wallet/stat',
						name: 'stat',
						component: () => import( /* webpackChunkName: "wallet" */ '@/views/wallet/Stat'),
						meta: {
							title: '概况',
							permission: ['wallet']
						}
					},
					{
						path: '/wallet/store-stat',
						name: 'storeStat',
						hidden: true,
						component: () => import( /* webpackChunkName: "wallet" */
							'@/views/wallet/StoreStat'),
						meta: {
							title: '门店详情',
							permission: ['wallet']
						}
					},
					// {
					//   path: '/wallet/provider-stat',
					//   name: 'providerStat',
					//   hidden: true,
					//   component: () => import(/* webpackChunkName: "wallet" */ '@/views/wallet/ProviderStat'),
					//   meta: { title: '网点详情', keepAlive: true, permission: ['wallet'] }
					// },
					{
						path: '/wallet/store-wallet',
						name: 'storeWallet',
						component: () => import( /* webpackChunkName: "wallet" */
							'@/views/wallet/StoreWallet'),
						meta: {
							title: '门店钱包',
							keepAlive: true,
							permission: ['wallet']
						}
					},
					{
						path: '/wallet/bill-list',
						name: 'billList',
						hidden: true,
						component: () => import( /* webpackChunkName: "wallet" */
							'@/views/wallet/BillList'),
						meta: {
							title: '对账单',
							permission: ['wallet']
						}
					},
					{
						path: '/wallet/bill-show',
						name: 'billShow',
						hidden: true,
						component: () => import( /* webpackChunkName: "wallet" */
							'@/views/wallet/BillShow'),
						meta: {
							title: '未出账单',
							keepAlive: false,
							permission: ['wallet']
						}
					},
					{
						path: '/wallet/provider-wallet',
						name: 'ProviderWallet',
						component: () => import( /* webpackChunkName: "wallet" */
							'@/views/wallet/ProviderWallet'),
						meta: {
							title: '服务商钱包',
							keepAlive: true,
							permission: ['wallet']
						}
					},
					{
						path: '/wallet/platform-wallet',
						name: 'platformWallet',
						component: () => import( /* webpackChunkName: "wallet" */
							'@/views/wallet/PlatformWallet'),
						meta: {
							title: '平台钱包',
							keepAlive: true,
							permission: ['wallet']
						}
					},
					{
						path: '/wallet/store-wallet-detail',
						name: 'storeWalletDetail',
						hidden: true,
						component: () => import( /* webpackChunkName: "wallet" */
							'@/views/wallet/StoreWalletDetail'),
						meta: {
							title: '钱包详情',
							permission: ['wallet']
						}
					},
					{
						path: '/wallet/steward-wallet-list',
						name: 'stewardWalletList',
						component: () => import( /* webpackChunkName: "wallet" */
							'@/views/wallet/StewardWalletList'),
						meta: {
							title: '乐管家钱包',
							permission: ['wallet']
						}
					},
					{
						path: '/wallet/steward-wallet-detail',
						name: 'stewardWalletDetail',
						hidden: true,
						component: () => import( /* webpackChunkName: "wallet" */
							'@/views/wallet/StewardWalletDetail'),
						meta: {
							title: '乐管家钱包详情',
							permission: ['wallet']
						}
					},
					{
						path: '/wallet/take-money-list',
						name: 'takeMoneyList',
						component: () => import( /* webpackChunkName: "wallet" */
							'@/views/wallet/TakeMoneyList'),
						meta: {
							title: '提现列表',
							permission: ['wallet']
						}
					},
					{
						path: '/wallet/user-wallet',
						name: 'userWallet',
						component: () => import( /* webpackChunkName: "wallet" */
							'@/views/wallet/UserWallet'),
						meta: {
							title: '充值管理',
							keepAlive: true,
							permission: ['wallet']
						}
					}
				]
			},
			{
				path: '/user',
				name: 'user',
				component: RouteView,
				redirect: '/user/user-list',
				meta: {
					title: '用户模块',
					icon: 'team',
					permission: ['user']
				},
				children: [{
						path: '/user/user-list',
						name: 'userList',
						component: () => import( /* webpackChunkName: "user" */ '@/views/user/UserList'),
						meta: {
							title: '用户列表',
							keepAlive: true,
							permission: ['user']
						}
					},
					{
						path: '/user/vip-list',
						name: 'userVipList',
						component: () => import( /* webpackChunkName: "user" */ '@/views/user/VipList'),
						meta: {
							title: 'VIP列表',
							keepAlive: true,
							permission: ['user']
						}
					},
					{
						path: '/user/steward-list',
						name: 'stewardList',
						component: () => import( /* webpackChunkName: "user" */ '@/views/user/StewardList'),
						meta: {
							title: '乐管家列表',
							keepAlive: true,
							permission: ['user']
						}
					},
					{
						path: '/user/feedback-list',
						name: 'feedBack',
						component: () => import( /* webpackChunkName: "user" */
							'@/views/user/FeedbackList'),
						meta: {
							title: '用户反馈',
							keepAlive: true,
							permission: ['user']
						}
					}
				]
			},
			{
				path: '/system',
				name: 'system',
				component: RouteView,
				redirect: '/system/role-list',
				meta: {
					title: '系统设置',
					icon: 'setting',
					keepAlive: true,
					permission: ['system']
				},
				children: [{
						path: '/system/large-screen',
						name: 'LargeScreen',
						component: () => import( /* webpackChunkName: "system" */
							'@/views/system/LargeScreen'),
						meta: {
							title: '数据大屏',
							keepAlive: true,
							permission: ['system']
						}
					},{
						path: '/system/role-list',
						name: 'roleList',
						component: () => import( /* webpackChunkName: "system" */
							'@/views/system/RoleList'),
						meta: {
							title: '角色管理',
							keepAlive: true,
							permission: ['system']
						}
					},
					{
						path: '/system/menu-list',
						name: 'menuList',
						component: () => import( /* webpackChunkName: "system" */
							'@/views/system/MenuList'),
						meta: {
							title: '菜单管理',
							keepAlive: true,
							permission: ['system']
						}
					},
					{
						path: '/system/permission-list',
						name: 'permissionList',
						component: () => import( /* webpackChunkName: "system" */
							'@/views/system/PermissionList'),
						meta: {
							title: '权限管理',
							keepAlive: true,
							permission: ['system']
						}
					},
					{
						path: '/system/center',
						name: 'center',
						component: () => import( /* webpackChunkName: "system" */ '@/views/system/Center'),
						meta: {
							title: '个人中心',
							keepAlive: true,
							permission: ['system']
						}
					},
					{
						path: '/system/manager',
						name: 'manager',
						component: () => import( /* webpackChunkName: "system" */ '@/views/system/Manager'),
						meta: {
							title: '账号管理',
							keepAlive: true,
							permission: ['system']
						}
					},
					{
						path: '/system/manager-store',
						name: 'managerStore',
						component: () => import( /* webpackChunkName: "system" */
							'@/views/system/ManagerStore'),
						meta: {
							title: '门店管理员',
							keepAlive: true,
							permission: ['system']
						}
					},
					{
						path: '/system/manager-provider',
						name: 'managerProvider',
						component: () => import( /* webpackChunkName: "system" */
							'@/views/system/ManagerProvider'),
						meta: {
							title: '服务商管理',
							keepAlive: true,
							permission: ['system']
						}
					}
				]
			},
			{
				path: '/assistance',
				name: 'assistance',
				component: RouteView,
				redirect: '/assistance/store-assis',
				meta: {
					title: '帮扶政策',
					icon: 'setting',
					keepAlive: true,
					permission: ['assistance']
				},
				children:[{
					path: '/assistance/store-assis',
					name: 'StoreAssis',
					component: () => import( /* webpackChunkName: "system" */
						'@/views/assistance/StoreAssis'),
					meta: {
						title: '门店帮扶',
						keepAlive: true,
						permission: ['assistance']
					}
				}]
			},
			{
				path: '/cooperate',
				name: 'cooperate',
				component: RouteView,
				redirect: '/cooperate/Partner',
				meta: {
					title: '加盟入驻',
					icon: 'team',
					keepAlive: true,
					permission: ['cooperate']
				},
				children:[{
					path: '/cooperate/Partner',
					name: 'Partner',
					component: () => import( /* webpackChunkName: "system" */
						'@/views/cooperate/Partner'),
					meta: {
						title: '城市合伙人',
						keepAlive: true,
						permission: ['cooperate']
					}
				}]
			}
			// // dashboard
			// {
			//   path: '/dashboard',
			//   name: 'dashboard',
			//   redirect: '/dashboard/workplace',
			//   component: RouteView,
			//   meta: { title: 'menu.dashboard', keepAlive: true, icon: bxAnaalyse, permission: ['dashboard'] },
			//   children: [
			//     {
			//       path: '/dashboard/analysis/:pageNo([1-9]\\d*)?',
			//       name: 'Analysis',
			//       component: () => import('@/views/dashboard/Analysis'),
			//       meta: { title: 'menu.dashboard.analysis', keepAlive: false, permission: ['dashboard'] }
			//     },
			//     // 外部链接
			//     {
			//       path: 'https://www.baidu.com/',
			//       name: 'Monitor',
			//       meta: { title: 'menu.dashboard.monitor', target: '_blank' }
			//     },
			//     {
			//       path: '/dashboard/workplace',
			//       name: 'Workplace',
			//       component: () => import('@/views/dashboard/Workplace'),
			//       meta: { title: 'menu.dashboard.workplace', keepAlive: true, permission: ['dashboard'] }
			//     }
			//   ]
			// },
			// // forms
			// {
			//   path: '/form',
			//   redirect: '/form/base-form',
			//   component: RouteView,
			//   meta: { title: 'menu.form', icon: 'form', permission: ['form'] },
			//   children: [
			//     {
			//       path: '/form/base-form',
			//       name: 'BaseForm',
			//       component: () => import('@/views/form/basicForm'),
			//       meta: { title: 'menu.form.basic-form', keepAlive: true, permission: ['form'] }
			//     },
			//     {
			//       path: '/form/step-form',
			//       name: 'StepForm',
			//       component: () => import('@/views/form/stepForm/StepForm'),
			//       meta: { title: 'menu.form.step-form', keepAlive: true, permission: ['form'] }
			//     },
			//     {
			//       path: '/form/advanced-form',
			//       name: 'AdvanceForm',
			//       component: () => import('@/views/form/advancedForm/AdvancedForm'),
			//       meta: { title: 'menu.form.advanced-form', keepAlive: true, permission: ['form'] }
			//     }
			//   ]
			// },
			// // list
			// {
			//   path: '/list',
			//   name: 'list',
			//   component: RouteView,
			//   redirect: '/list/table-list',
			//   meta: { title: 'menu.list', icon: 'table', permission: ['table'] },
			//   children: [
			//     {
			//       path: '/list/table-list/:pageNo([1-9]\\d*)?',
			//       name: 'TableListWrapper',
			//       hideChildrenInMenu: true, // 强制显示 MenuItem 而不是 SubMenu
			//       component: () => import('@/views/list/TableList'),
			//       meta: { title: 'menu.list.table-list', keepAlive: true, permission: ['table'] }
			//     },
			//     {
			//       path: '/list/basic-list',
			//       name: 'BasicList',
			//       component: () => import('@/views/list/BasicList'),
			//       meta: { title: 'menu.list.basic-list', keepAlive: true, permission: ['table'] }
			//     },
			//     {
			//       path: '/list/card',
			//       name: 'CardList',
			//       component: () => import('@/views/list/CardList'),
			//       meta: { title: 'menu.list.card-list', keepAlive: true, permission: ['table'] }
			//     },
			//     {
			//       path: '/list/search',
			//       name: 'SearchList',
			//       component: () => import('@/views/list/search/SearchLayout'),
			//       redirect: '/list/search/article',
			//       meta: { title: 'menu.list.search-list', keepAlive: true, permission: ['table'] },
			//       children: [
			//         {
			//           path: '/list/search/article',
			//           name: 'SearchArticles',
			//           component: () => import('../views/list/search/Article'),
			//           meta: { title: 'menu.list.search-list.articles', permission: ['table'] }
			//         },
			//         {
			//           path: '/list/search/project',
			//           name: 'SearchProjects',
			//           component: () => import('../views/list/search/Projects'),
			//           meta: { title: 'menu.list.search-list.projects', permission: ['table'] }
			//         },
			//         {
			//           path: '/list/search/application',
			//           name: 'SearchApplications',
			//           component: () => import('../views/list/search/Applications'),
			//           meta: { title: 'menu.list.search-list.applications', permission: ['table'] }
			//         }
			//       ]
			//     }
			//   ]
			// },

			// // profile
			// {
			//   path: '/profile',
			//   name: 'profile',
			//   component: RouteView,
			//   redirect: '/profile/basic',
			//   meta: { title: 'menu.profile', icon: 'profile', permission: ['profile'] },
			//   children: [
			//     {
			//       path: '/profile/basic',
			//       name: 'ProfileBasic',
			//       component: () => import('@/views/profile/basic'),
			//       meta: { title: 'menu.profile.basic', permission: ['profile'] }
			//     },
			//     {
			//       path: '/profile/advanced',
			//       name: 'ProfileAdvanced',
			//       component: () => import('@/views/profile/advanced/Advanced'),
			//       meta: { title: 'menu.profile.advanced', permission: ['profile'] }
			//     }
			//   ]
			// },

			// // result
			// {
			//   path: '/result',
			//   name: 'result',
			//   component: RouteView,
			//   redirect: '/result/success',
			//   meta: { title: 'menu.result', icon: 'check-circle-o', permission: ['result'] },
			//   children: [
			//     {
			//       path: '/result/success',
			//       name: 'ResultSuccess',
			//       component: () => import(/* webpackChunkName: "result" */ '@/views/result/Success'),
			//       meta: { title: 'menu.result.success', keepAlive: false, hiddenHeaderContent: true, permission: ['result'] }
			//     },
			//     {
			//       path: '/result/fail',
			//       name: 'ResultFail',
			//       component: () => import(/* webpackChunkName: "result" */ '@/views/result/Error'),
			//       meta: { title: 'menu.result.fail', keepAlive: false, hiddenHeaderContent: true, permission: ['result'] }
			//     }
			//   ]
			// },

			// // Exception
			// {
			//   path: '/exception',
			//   name: 'exception',
			//   component: RouteView,
			//   redirect: '/exception/403',
			//   meta: { title: 'menu.exception', icon: 'warning', permission: ['exception'] },
			//   children: [
			//     {
			//       path: '/exception/403',
			//       name: 'Exception403',
			//       component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/403'),
			//       meta: { title: 'menu.exception.not-permission', permission: ['exception'] }
			//     },
			//     {
			//       path: '/exception/404',
			//       name: 'Exception404',
			//       component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404'),
			//       meta: { title: 'menu.exception.not-find', permission: ['exception'] }
			//     },
			//     {
			//       path: '/exception/500',
			//       name: 'Exception500',
			//       component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/500'),
			//       meta: { title: 'menu.exception.server-error', permission: ['exception'] }
			//     }
			//   ]
			// },

			// // account
			// {
			//   path: '/account',
			//   component: RouteView,
			//   redirect: '/account/center',
			//   name: 'account',
			//   meta: { title: 'menu.account', icon: 'user', keepAlive: true, permission: ['user'] },
			//   children: [
			//     {
			//       path: '/account/center',
			//       name: 'center',
			//       component: () => import('@/views/account/center'),
			//       meta: { title: 'menu.account.center', keepAlive: true, permission: ['user'] }
			//     },
			//     {
			//       path: '/account/settings',
			//       name: 'settings',
			//       component: () => import('@/views/account/settings/Index'),
			//       meta: { title: 'menu.account.settings', hideHeader: true, permission: ['user'] },
			//       redirect: '/account/settings/basic',
			//       hideChildrenInMenu: true,
			//       children: [
			//         {
			//           path: '/account/settings/basic',
			//           name: 'BasicSettings',
			//           component: () => import('@/views/account/settings/BasicSetting'),
			//           meta: { title: 'account.settings.menuMap.basic', hidden: true, permission: ['user'] }
			//         },
			//         {
			//           path: '/account/settings/security',
			//           name: 'SecuritySettings',
			//           component: () => import('@/views/account/settings/Security'),
			//           meta: {
			//             title: 'account.settings.menuMap.security',
			//             hidden: true,
			//             keepAlive: true,
			//             permission: ['user']
			//           }
			//         },
			//         {
			//           path: '/account/settings/custom',
			//           name: 'CustomSettings',
			//           component: () => import('@/views/account/settings/Custom'),
			//           meta: { title: 'account.settings.menuMap.custom', hidden: true, keepAlive: true, permission: ['user'] }
			//         },
			//         {
			//           path: '/account/settings/binding',
			//           name: 'BindingSettings',
			//           component: () => import('@/views/account/settings/Binding'),
			//           meta: { title: 'account.settings.menuMap.binding', hidden: true, keepAlive: true, permission: ['user'] }
			//         },
			//         {
			//           path: '/account/settings/notification',
			//           name: 'NotificationSettings',
			//           component: () => import('@/views/account/settings/Notification'),
			//           meta: {
			//             title: 'account.settings.menuMap.notification',
			//             hidden: true,
			//             keepAlive: true,
			//             permission: ['user']
			//           }
			//         }
			//       ]
			//     }
			//   ]
			// },
			// // other
			// {
			//   path: '/other',
			//   name: 'otherPage',
			//   component: PageView,
			//   meta: { title: '其他组件', icon: 'slack', permission: ['dashboard'] },
			//   redirect: '/other/icon-selector',
			//   children: [
			//     {
			//       path: '/other/icon-selector',
			//       name: 'TestIconSelect',
			//       component: () => import('@/views/other/IconSelectorView'),
			//       meta: { title: 'IconSelector', icon: 'tool', keepAlive: true, permission: ['dashboard'] }
			//     },
			//     {
			//       path: '/other/list',
			//       component: RouteView,
			//       meta: { title: '业务布局', icon: 'layout', permission: ['support'] },
			//       redirect: '/other/list/tree-list',
			//       children: [
			//         {
			//           path: '/other/list/tree-list',
			//           name: 'TreeList',
			//           component: () => import('@/views/other/TreeList'),
			//           meta: { title: '树目录表格', keepAlive: true }
			//         },
			//         {
			//           path: '/other/list/edit-table',
			//           name: 'EditList',
			//           component: () => import('@/views/other/TableInnerEditList'),
			//           meta: { title: '内联编辑表格', keepAlive: true }
			//         },
			//         {
			//           path: '/other/list/user-list',
			//           name: 'UserList',
			//           component: () => import('@/views/other/UserList'),
			//           meta: { title: '用户列表', keepAlive: true }
			//         },
			//         {
			//           path: '/other/list/role-list',
			//           name: 'RoleList',
			//           component: () => import('@/views/other/RoleList'),
			//           meta: { title: '角色列表', keepAlive: true }
			//         },
			//         {
			//           path: '/other/list/system-role',
			//           name: 'SystemRole',
			//           component: () => import('@/views/role/RoleList'),
			//           meta: { title: '角色列表2', keepAlive: true }
			//         },
			//         {
			//           path: '/other/list/permission-list',
			//           name: 'PermissionList',
			//           component: () => import('@/views/other/PermissionList'),
			//           meta: { title: '权限列表', keepAlive: true }
			//         }
			//       ]
			//     }
			//   ]
			// }
		]
	},
	{
		path: '*',
		redirect: '/404',
		hidden: true
	}
]

/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [{
		path: '/user',
		component: UserLayout,
		redirect: '/user/login',
		hidden: true,
		children: [{
				path: 'login',
				name: 'login',
				component: () => import( /* webpackChunkName: "user" */ '@/views/user/Login')
			},
			{
				path: 'recover',
				name: 'recover',
				component: undefined
			}
		]
	},

	{
		path: '/404',
		component: () => import( /* webpackChunkName: "fail" */ '@/views/exception/404')
	}
]